#!/bin/bash

source internal/docker/docker_env.sh

export PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
export FOUNDRY_PROFILE="layer1"
export TAIKO_ANCHOR_ADDRESS=0x1670010000000000000000000000000000010001
export L2_SIGNAL_SERVICE=0x1670010000000000000000000000000000010005
export CONTRACT_OWNER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export TAIKO_TOKEN_PREMINT_RECIPIENT=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export TAIKO_TOKEN_NAME="Taiko Token Test"
export TAIKO_TOKEN_SYMBOL="TTKOt"
export PAUSE_BRIDGE="false"
export OLD_FORK_TAIKO_INBOX=0x0000000000000000000000000000000000000000
export TAIKO_TOKEN=0x0000000000000000000000000000000000000000
export SHARED_RESOLVER=0x0000000000000000000000000000000000000000
export INCLUSION_WINDOW=3
export INCLUSION_FEE_IN_GWEI=10
export DEPLOY_PRECONF_CONTRACTS="true"
export PRECONF_ROUTER="false"
export PRECONF_INBOX="false"
export DUMMY_VERIFIERS="true"
export ACTIVATE_INBOX="false"
export L2_CHAIN_ID=167001
export PROVER_SET_ADMIN=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export PROPOSER_ADDRESS=0x3c44cdddb6a900fa2b585dd299e03d12fa4293bc
export SHASTA_INITIALIZER=0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
export PRECONF_WHITELIST=0x0000000000000000000000000000000000000000

# Get the hash of the L2 genesis block.
export L2_GENESIS_HASH=$(
    curl \
        --silent \
        -X POST \
        -H "Content-Type: application/json" \
        -d '{"jsonrpc":"2.0","id":0,"method":"eth_getBlockByNumber","params":["0x0", false]}' \
        $L2_HTTP | jq .result.hash | sed 's/\"//g'
)
echo "L2_GENESIS_HASH: $L2_GENESIS_HASH"
